home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Planet Source Code Jumbo …e CD Visual Basic 1 to 7
/
5_2007-2008.ISO
/
data
/
Zips
/
Universal_2106383172008.psc
/
DLL Source
/
RetTest.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
2008-02-13
|
798b
|
29 lines
#include <windows.h>
extern "C" { int _fltused; };
extern "C" BOOL WINAPI _DllMainCRTStartup(HMODULE hModule, DWORD dwReason, LPVOID lpreserved)
{
return TRUE;
}
__int8 GetByte () { return 0x12; }
__int16 GetInteger() { return 0x1234; }
__int32 GetLong () { return 0x12345678; }
__int64 GetInt64 () { return 1234567890123; }
void * GetPointer() { return "Hello World"; }
float GetSingle () { return 1.234567890123456789; }
double GetDouble () { return 1.234567890123456789; }
double GetDblInc(double d)
{
return d + 1.00;
}
void Subroutine(__int32 nValue)
{
CHAR szText[80];
wsprintfA(szText, "Parameter nValue: 0x%X", nValue);
MessageBoxA(0, szText,"Subroutine test", MB_OK);
}